﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Modify.aspx.cs" Inherits="admin_Modify" StylesheetTheme="admin"  ValidateRequest="false"%>

<%@ Register Src="upfile.ascx" TagName="upfile" TagPrefix="uc1" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        商品信息修改
        <hr />
    
    </div>
        <table bgcolor="#f0f0f0" border="0" cellpadding="0" cellspacing="1" width="96%">
            <tr>
                <td colspan="2" height="25">
                    &nbsp; &nbsp;</td>
            </tr>
            <tr>
                <td align="right" height="25" style="width: 87px">
                    产品名称:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:TextBox ID="ProName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Proname"
                        ErrorMessage="产品名称不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" height="25" style="width: 87px">
                    产品类别:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:DropDownList ID="Category" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td align="right" height="25" style="width: 87px">
                    市场价格:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:TextBox ID="MarketPrice" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="MarketPrice"
                        ErrorMessage="价格格式应为小数点后两位" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="MarketPrice"
                        ErrorMessage="价格不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" height="35" style="width: 87px">
                    会员价格:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:TextBox ID="MemberPrice" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="MemberPrice"
                        ErrorMessage="价格格式应为小数点后两位" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" height="35" style="width: 87px">
                    是否热卖:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:RadioButtonList ID="Hot" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="1">热卖</asp:ListItem>
                        <asp:ListItem Value="0">非热卖</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="right" height="35" style="width: 87px">
                    是否特价:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:RadioButtonList ID="Tejia" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="1">特价</asp:ListItem>
                        <asp:ListItem Value="0">非特价</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="right" height="35" style="width: 87px">
                    是否精品:</td>
                <td align="left" style="width: 633px">
                    &nbsp;<asp:RadioButtonList ID="Jipin" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="1">精品</asp:ListItem>
                        <asp:ListItem Value="0">非精品</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="right" height="35" style="width: 87px">
                    数量：</td>
                <td align="left" style="width: 633px">
                    <asp:TextBox ID="tblNum" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="tblNum"
                        ErrorMessage="只能为数字"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tblNum"
                        ErrorMessage="X"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" style="width: 87px; height: 40px">
                    产品图片:</td>
                <td align="left" style="width: 633px; height: 40px">
                    <uc1:upfile ID="Upfile1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 87px; height: 35px">
                    详细介绍:</td>
                <td align="left" style="width: 633px; height: 35px">
                    &nbsp;<FTB:FreeTextBox ID="FreeTextBox1" runat="server">
                    </FTB:FreeTextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 87px; height: 35px">
                    &nbsp;</td>
                <td align="left" style="width: 633px; height: 35px">
                    &nbsp;<asp:Button ID="Button2" runat="server" CssClass="submit" OnClick="Button2_Click"
                        Text="修改" Width="60px" />
                    </td>
            </tr>
        </table>
    </form>
</body>
</html>
